﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Gene_Explorer_Server
{
    public partial class TransformationSettingDialog : Form
    {
        public TransformationSettingDialog()
        {
            InitializeComponent();
        }
        
        
        private void comboBoxLog_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBoxLog.SelectedIndex == 3)
            {
                label1.Visible = true;
                textBoxX.Visible = true;
            }
            else
            {
                label1.Visible = false;
                textBoxX.Visible = false;
            }
        }

        private void radioButtonLog_CheckedChanged(object sender, EventArgs e)
        {
            if (radioButtonLog.Checked == true)
            {
                comboBoxLog.Enabled = true;
                textBoxX.Enabled = true;
            }
            else
            {
                comboBoxLog.Enabled = false;
                textBoxX.Enabled = false;
            }
        }


        private void radioButtonNorm_CheckedChanged(object sender, EventArgs e)
        {
            if (radioButtonNorm.Checked == false)
            {
                comboBoxLog.Enabled = true;
                textBoxX.Enabled = true;
            }
            else
            {
                comboBoxLog.Enabled = false;
                textBoxX.Enabled = false;
            }
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void buttonRun_Click(object sender, EventArgs e)
        {
      //      GraphicPlot gP = new GraphicPlot();
     //       gP.ShowDialog();
        }

        private void TransformationSettingDialog_Load(object sender, EventArgs e)
        {

        }
    }
}
